const IndexModel = {
  namespace: 'load',

  state: {
    isLoad: false,
  },
  reducers: {
    setLoading(state, action) {
      return {
        isLoad: action.payload,
      };
    },
    // 启用 immer 之后
    // save(state, action) {
    //   state.name = action.payload;
    // },
  },
};

export default IndexModel;
